<?php

namespace app\common\model;

use think\Model;

class Common extends Model
{
    /**
     * 添加数据
     * @param $data
     * @return mixed
     */
    public function add($data) {
        $this->allowField(true)->save($data);
        return $this->id;
    }
}
